package structures.lists;

public class Tester {
    
    public static void main(String [] args) {
        //SingleLinkedList list = new SingleLinkedList();
        DoubleLinkedList list = new DoubleLinkedList();
        //CircularSingleLinkedList list = new CircularSingleLinkedList();
        //CircularDoubleLinkedList list = new CircularDoubleLinkedList();
        System.out.println("Size: " + list.size());
        System.out.println("Adding: 1");list.add(Integer.valueOf(1));
        System.out.println("Adding: 2");list.add(Integer.valueOf(2));
        System.out.println("Size: " + list.size());
        System.out.println("Adding: 3");list.add(Integer.valueOf(3));
        System.out.println("Adding: 4");list.add(Integer.valueOf(4));
        System.out.println("Size: " + list.size());
        System.out.println("Getting 0: " + list.get(0));
        System.out.println("Getting 1: " + list.get(1));
        System.out.println("Getting 2: " + list.get(2));
        System.out.println("Getting 3: " + list.get(3));
        System.out.println("Getting 4: " + list.get(4));
        System.out.println("Size: " + list.size());
        System.out.println("Removing: 0");list.remove(0);
        System.out.println("Removing: 1");list.remove(1);
        System.out.println("Removing: 1");list.remove(1);
        System.out.println("Size: " + list.size());
        System.out.println("Getting 0: " + list.get(0));
    }
}
